#pragma once

#include <inttypes.h>

#define DEBUG 1

#if DEBUG
#include "SEGGER_RTT.h"
#define user_printf(format, ...)  SEGGER_RTT_printf(0, "[%d] "format, sys_clock_get_ms(), ##__VA_ARGS__)
#define user_log_init SEGGER_RTT_Init
#else
#define user_printf(format, ...)
#define user_log_init()
#endif
